
import {
  exeType,
  orderType,
  contentSource,
  buyTypeOptions,
  conMoneyTypeOptions
} from './options';

export const legalOrderSetting = [
  {
    label: '订单类型',
    type: 'select',
    width: '150px',
    keyword: 'orderType',
    isRequired: true,
    keyName: 'value',
    labelName: 'label',
    options: orderType
  }, {
    label: '订单编号',
    width: '180px',
    type: 'inputText',
    maxlength: 64,
    isRequired: true,
    keyword: 'orderNum',
    routerJump: true,
    defaultEmpty: '--'
  },
  //   {
  //   label: '项目内容',
  //   width: '130px',
  //   type: 'inputText',
  //   maxlength: 64,
  //   isRequired: true,
  //   keyword: 'projectContent'
  // },
  {
    label: '含税金额（元）',
    width: '150px',
    type: 'inputNumber',
    isRequired: true,
    keyword: 'contractPrice',
    defaultEmpty: '0'
  }, {
    label: '刊例价（元）',
    width: '150px',
    type: 'inputNumber',
    isRequired: true,
    keyword: 'publishPrice',
    defaultEmpty: '--'
  }, {
    label: '执行账号',
    width: '130px',
    type: 'inputText',
    maxlength: 64,
    isRequired: true,
    keyword: 'exeAccount',
    defaultEmpty: '--'
  }, {
    label: '执行主题（项目）',
    width: '150px',
    type: 'inputText',
    maxlength: 64,
    isRequired: true,
    keyword: 'exeTheme',
    defaultEmpty: '--'
  }, {
    label: '下单平台',
    type: 'select',
    width: '150px',
    keyword: 'orderPlatform',
    isRequired: true,
    keyName: 'id',
    labelName: 'value',
    options: []
  }, {
    label: '执行类型',
    type: 'select',
    width: '150px',
    keyword: 'exeType',
    isRequired: true,
    keyName: 'value',
    labelName: 'label',
    options: exeType
  }, {
    label: '内容来源',
    type: 'select',
    width: '150px',
    keyword: 'contentSource',
    isRequired: true,
    keyName: 'value',
    labelName: 'label',
    options: contentSource
  }];

export const issueInvoiceOrderSetting = [
  {
    label: '订单类型',
    type: 'select',
    width: '150px',
    keyword: 'orderType',
    isRequired: true,
    keyName: 'value',
    labelName: 'label',
    options: orderType
  }, {
    label: '订单编号',
    width: '180px',
    type: 'inputText',
    maxlength: 64,
    isRequired: true,
    keyword: 'orderNum',
    routerJump: true,
    defaultEmpty: '--'
  },
  {
    label: '合同金额（含税）',
    width: '150px',
    type: 'inputNumber',
    isRequired: true,
    keyword: 'contractPrice',
    defaultEmpty: '0'
  }, {
    label: '刊例价（含税）',
    width: '150px',
    type: 'inputNumber',
    isRequired: true,
    keyword: 'publishPrice',
    defaultEmpty: '--'
  }, {
    label: '执行账号',
    width: '130px',
    type: 'inputText',
    maxlength: 64,
    isRequired: true,
    keyword: 'exeAccount',
    defaultEmpty: '--'
  }, {
    label: '执行主题（项目）',
    width: '150px',
    type: 'inputText',
    maxlength: 64,
    isRequired: true,
    keyword: 'exeTheme',
    defaultEmpty: '--'
  }, {
    label: '下单平台',
    type: 'select',
    width: '150px',
    keyword: 'orderPlatform',
    isRequired: true,
    keyName: 'id',
    labelName: 'value',
    options: []
  }
];

export const realLegalOrderSetting = [{
  label: '订单编号',
  width: '180px',
  type: 'inputText',
  maxlength: 64,
  isRequired: false,
  keyword: 'orderNum',
  routerJump: true
}, {
  label: '合同金额（含税）',
  width: '150px',
  type: 'inputNumber',
  showType: 'price',
  isRequired: false,
  keyword: 'contractPrice'
}, {
  label: '刊例价（含税）',
  width: '150px',
  type: 'inputNumber',
  isRequired: false,
  showType: 'price',
  keyword: 'publishPrice'
}, {
  label: '执行账号',
  width: '130px',
  type: 'inputText',
  maxlength: 64,
  isRequired: false,
  keyword: 'exeAccount'
}, {
  label: '执行主题（项目）',
  width: '150px',
  type: 'inputText',
  maxlength: 64,
  isRequired: false,
  keyword: 'exeTheme'
}, {
  label: '下单平台',
  type: 'select',
  width: '150px',
  keyword: 'orderPlatformName',
  isRequired: false,
  keyName: 'id',
  labelName: 'value',
  options: []
}, {
  label: '订单类型',
  type: 'select',
  width: '150px',
  keyword: 'orderTypeName',
  isRequired: false,
  keyName: 'value',
  labelName: 'label',
  options: orderType
}];

export const staffAdminlegalOrderSetting = [{
  label: '订单编号',
  type: 'inputText',
  maxlength: 64,
  isRequired: false,
  keyword: 'orderNum'
}, {
  label: '采买项目',
  type: 'inputText',
  maxlength: 64,
  isRequired: true,
  keyword: 'buyProject'
}, {
  label: '采买类型',
  type: 'cascader',
  width: '180px',
  keyword: 'buyType',
  isRequired: true,
  options: buyTypeOptions
}, {
  label: '合同金额类型',
  type: 'cascader',
  width: '150px',
  keyword: 'conMonType',
  isRequired: true,
  options: conMoneyTypeOptions
}, {
  label: '合同金额（含税）',
  type: 'inputNumber',
  isRequired: true,
  keyword: 'contractPrice',
  width: '150px'
}];
